Converting Python dict to kwargs